# -*- coding: utf-8 -*-

"""
报错类型定义
"""

"""

版权所有 © 2025 金羿ELS
Copyright (c) 2025 Eilles(EillesWan@outlook.com)

MineMusicVisualizer is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
         http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.

"""

from typing import Any



class MMVBaseException(Exception):
    """音·创库版本的所有错误均继承于此"""

    def __init__(self, *args):
        """音·创库版本的所有错误均继承于此"""
        super().__init__(*args)

    def meow(
        self,
    ):
        for i in self.args:
            print(i + "喵！")

    def crash_it(self):
        raise self



class AxisParallelError(MMVBaseException, ValueError):
    """坐标轴平行错误"""

    def __init__(self, *args):
        super().__init__("此两处坐标轴因平行而产生错误",*args)



